package com.m4f.city.business.service.impl;

import java.util.logging.Logger;

import com.m4f.city.business.domain.Application;
import com.m4f.city.business.service.ifc.ApplicationService;
import com.m4f.gaeweb.business.service.impl.GenericDAOBaseService;
import com.m4f.gaeweb.persistence.dao.ifc.DAOSupport;

public class ApplicationServiceImpl extends GenericDAOBaseService<Application> implements ApplicationService {
	
	private static final Logger LOGGER = Logger.getLogger(ApplicationServiceImpl.class.getName());
	
	public ApplicationServiceImpl(DAOSupport dao) {
		super(dao, Application.class);
	}

	@Override
	public Application getAppliaction(String clientId) throws Exception {
		return this.DAO.findEntity(Application.class, "clientId == clientIdParam", 
				"String clientIdParam", new String[]{clientId});
	}	
}